

import org.apache.log4j.Logger;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.transaction.TransactionalTestExecutionListener;

/**
 * @功能说明：单元测试父类
 * @作者： 罗明俊
 * @创建日期： 2012-5-9
 * @
 */
@ContextConfiguration(locations = { "classpath:beans.xml" })
//① 注册测试用例事务管理的监听器
@TestExecutionListeners( { TransactionalTestExecutionListener.class })
//② 使测试用例的所有方法都将工作于事务环境下
public abstract class JUnit extends AbstractTransactionalJUnit4SpringContextTests{

	public  static Logger logger = Logger.getLogger(JUnit.class);
}
